package com.j.lemon.learn.basic.practice;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component("role")
public class Role {
    @Value("#{st}")
    private Studen studen;

    @Value("#{st.id+1}")
    private String name;

    public Studen getStuden() {
        return studen;
    }

    public void setStuden(Studen studen) {
        this.studen = studen;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
